import { Row } from "antd";
import defaultData from "./data";
import Props from "../base/Props";
import { WeaTimePicker,WeaLocaleProvider } from "ecCom";
const getLabel = WeaLocaleProvider.getLabel;

export default class TimeProps extends Props {
  renderDefaultValue() {
    const { data } = this.props;
    const { defaultValue } = data;

    return (
      <Row>
        <label>{getLabel(502451,'默认值')}</label>
        <WeaTimePicker
          value={defaultValue}
          formatPattern='2'
          onChange={super.handlePropChange('defaultValue')}
        />
      </Row>
    );
  }
}

TimeProps.defaultProps = {
  data: defaultData
};